<?php
session_start();

// includes
	include_once "%connectinclude%";
	include_once "%class_subpath%CF_mysql_com.php";
	include_once "%class_subpath%CF_form_class.php";
	include_once "%fieldinclude%";
	
// define custom class
	class %edit_class_name% extends %edit_base_class% {
	
	
	}	
	
// Use class instance
	$%edit_instance% = new %edit_class_name%($fieldspec, $testtable);
	$%edit_instance%->set_name('%cs_name%');
	$%edit_instance%->set_actionpage("%process_page%");
	$%edit_instance%->set_selfpage("%edit_page%");
	
// Get keyed row	
// Get keyed row	
	if($%edit_instance%->get_keys()){
		$mode = 'Save';
	}else{
		$mode = 'New';
	}
		
	$qry_list = "%str_query% ";
	$qry_list .= $%edit_instance%->make_keys_clause();
	print $qry_list;
	
	$array_list = get_array_query($qry_list);
	
	$%edit_instance%->set_valuesarray($array_list);
	
		
	?>
	
	<html>
<head><title>cftest form</title>

<link rel="stylesheet" href="%class_subpath%commonctls.css" type="text/css">


</head>
<body>

<?php echo $%edit_instance%->make_form('get',$mode); ?>

</body>
</html>